<!-- 顶部导航开始 -->
<div id="nav">
	<div class="b-inside">
		<div class="logo">
			<div class="code">
				<p class="php">&lt;?php</p>
				<p class="echo">echo</p>
			</div>
			<p class="word">
				'<img src="__HOME_IMAGE__/logo.jpg" alt="">'
				<span>;</span>
			</p>
			<a href="{:U('Home/Index/index')}"></a>
		</div>
		<ul class="category">
			<li class="cname <if condition="(!isset($_GET['cid'])) and (!isset($article['category']['cid'])) and (cut_str(__INFO__,'/',-1) neq 'chat')">action</if>" >
				<a href="{:U('Home/Index/index')}">首页</a>
			</li>
			<foreach name="categorys" item="v">
				<li class="cname <if condition="($Think.get.cid eq $v['cid']) or ($article['category']['cid'] eq $v['cid'])">action</if>">
					<a href="{:U('Home/Index/category',array('cid'=>$v['cid']))}">{$v['cname']}</a>
				</li>
			</foreach>
			<li class="cname <if condition="cut_str(__INFO__,'/',-1) eq 'chat'">action</if> ">
				<a href="{:U('Home/Index/chat')}">随言碎语</a>
			</li>
			<li class="cname">
				<a href="http://git.oschina.net/shuaibai123/thinkbjy" target="_blank">thinkbjy</a>
			</li>
		</ul>
		<ul id="login-word" class="user">
			<if condition="session('user.id')" >
				<li class="user-info">
					<span><img src="<?php echo session('user.head_img') ;?>"/></span>
					<span><?php echo session('user.nickname') ;?></span>
					<span><a href="{:U('Home/User/logout')}">退出</a></span>
				</li>
			<else />	
				<li class="login" onclick="showlogin()">登陆</li>
			</if>
			
		</ul>
	</div>
</div>
<!-- 顶部导航结束 -->